package com.vsl.health;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.widget.Toast;

/**
 * Created by Vsl on 2016/2/23.
 */
public class UIStepBroadcastReceiver extends BroadcastReceiver {
    @Override
    public void onReceive(Context context, Intent intent) {
        String total_step = intent.getStringExtra("total_step");
//        Toast.makeText(context, "hahaha", Toast.LENGTH_SHORT).show();
        if (MainActivity.stepTextView != null) {
            MainActivity.stepTextView.setText(total_step);
        }
    }
}
